//    Copyright (C) Kherty.  All rights reserved.
using System.Windows;
using System.Windows.Controls.Primitives;

namespace OpenLS.Spreadsheet.UI
{
    partial class ViewTabContent
    {
        public ViewTabContent()
        {
            InitializeComponent();
        }

        private void ToggleButton_Loaded(object sender, RoutedEventArgs e)
        {
            ToggleButton b = (ToggleButton) sender;
            var exp = b.GetBindingExpression(ToggleButton.IsCheckedProperty);
            b.Click += delegate
                           {
                               b.SetBinding(ToggleButton.IsCheckedProperty, exp.ParentBinding);
                           };
        }


       

        
    }
}
